package com.czkt.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.czkt.entity.vo.BasDictAndCstCustomer;
import com.czkt.mapper.ConsRptMapper;
import com.czkt.service.ConsRptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ConsRptServiceImpl implements ConsRptService {

    @Resource
    ConsRptMapper consRptMapper;

    @Override
    public IPage<BasDictAndCstCustomer> selectBasDictByCustomer(Integer pageIndex,Integer pageSize) {
        Page<BasDictAndCstCustomer> page = new Page<>(pageIndex,pageSize);
        return consRptMapper.selectBasDictByCustomer(page);
    }

    @Override
    public List<BasDictAndCstCustomer> selectBasDictByCustomer() {
        return consRptMapper.selectBasDictByCustomer();
    }
}
